import Vue from 'vue'
import { resetForm, handleTree, addDateRange, downloadByUrl, moneyInput, deepClone, getMatchType } from "@/utils/index";
import Pagination from './components/Pagination/pagination.vue'
import ScreenFull from './components/ScreenFull/screenFull.vue'
import DownloadList from './components/DownloadList/downloadList.vue'
import TableCompEle from './components/TableComp/tableCompElement.vue'
import tableCompUmi from './components/TableComp/tableCompUmi.vue'
import SearchComp from './components/SearchComp/searchComp.vue'
import RightToolbar from './components/RightToolbar/rightToolbar.vue'
import EmptyComp from './components/EmptyComp/emptyComp.vue'
import TinymceEditor from '@/components/TinymceEditor/index'
import ButtonComp from '@/components/ButtonComp/buttonComp.vue'
import UploadFile from '@/components/UploadFile/index.vue'
import TableComp from '@/components/TableCompOld'
import SearchForm from '@/components/SearchForm'
import ChartComp from '@/components/echart/charts.vue'

import { UTable, UTableColumn, UxGrid, UxTableColumn } from 'umy-ui'
import { getDicts } from "@/api/system";
import utils from '@/utils/departmentTree.js'
Vue.prototype.$utils = utils
Vue.prototype.handleTree = handleTree
Vue.prototype.resetForm = resetForm
Vue.prototype.getDicts = getDicts
Vue.prototype.addDateRange = addDateRange
Vue.prototype.downloadByUrl = downloadByUrl
Vue.prototype.moneyInput = moneyInput
Vue.prototype.deepClone = deepClone
Vue.prototype.getMatchType = getMatchType

Vue.component(UxGrid.name, UxGrid)
Vue.component(UxTableColumn.name, UxTableColumn)
Vue.component(UTable.name, UTable)
Vue.component(UTableColumn.name, UTableColumn)
Vue.component('ScreenFull', ScreenFull)
Vue.component('DownloadList', DownloadList)
Vue.component('Pagination', Pagination)
Vue.component('TableCompEle', TableCompEle) // 普通分页表格
Vue.component('TableCompUmi', tableCompUmi) //大数据表格
Vue.component('SearchComp', SearchComp)
Vue.component('RightToolbar', RightToolbar)
Vue.component('EmptyComp', EmptyComp)
Vue.component('TinymceEditor', TinymceEditor)
Vue.component('TableCompUmi', tableCompUmi)
Vue.component('ButtonComp', ButtonComp)
Vue.component('UploadFile', UploadFile)
Vue.component('TableComp', TableComp)
Vue.component('SearchForm', SearchForm)
Vue.component('ChartComp', ChartComp)

